﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="HTML5Video.Video.WebForm1" %>

<!DOCTYPE html>

<html>
<head>
    <title>ScrollIntoView() example</title>
    <script type="text/javascript">
        function showIt(elID) {
            var el = document.getElementById(elID);
            el.scrollIntoView(true);
        }

    </script>
</head>
<body>
    <div style="height: 5em; width: 30em; overflow: scroll; border: 1px solid blue;">
        <div style="height: 100px"></div>
        <p id="pToShow">The para to show</p>
        <div style="height: 100px"></div>
    </div>
    <input type="button" value="Show para" onclick="showIt('pToShow');">
</body>
</html>
